package com.work.mvc.controler;

import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.*;
import com.work.WorkovertimeApplication;


public class LogoutController implements ClickListener {

	private static final long serialVersionUID = 3772156191389810071L;
	
	public LogoutController() {
	}

	public void buttonClick(ClickEvent event) {
		WorkovertimeApplication application = (WorkovertimeApplication) UI.getCurrent();
		application.logout();
	}
}
